<template>
  <el-form ref="form" label-width="20%">
    <el-form-item label="审核人">
      <el-select v-model="approver" placeholder="请选择审核人">
        <el-option
          v-for="item in $store.state.approvers"
          :key="item.id"
          :label="item.approverName"
          :value="item.id">
        </el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="变更原因">
      <el-input type="textarea" v-model="reason"></el-input>
    </el-form-item>
  </el-form>
</template>
<script>
export default {
  name: "approveReq",
  props: ['approvalId'],
  data() {
    return {
      approver:'',
      reason:''
    };
  },
  created: function() {

  },
  mounted: function() {},
  methods: {
    getData(){
      if(!this.approver || !this.reason){
        this.$message({
          message: '请填写提审信息',
          type: 'error'
        });
        return null
      }

      return {
        approval:this.approver,
        reason:this.reason,
        approvalId:this.approvalId
      }
    }
  }
};
</script>

